<!doctype html>
<html lang="">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="健康">
  <meta name="viewport"
        content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
  <title>抑郁问题测试</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp" />

  <!-- Fallback to homescreen for Chrome <39 on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <meta name="application-name" content="健康">

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="健康">
  <meta name="msapplication-TileColor" content="#0e90d2">
  <link rel="stylesheet" type="text/css" href="./common.css">
  <style>
    .answer-des {
      font-size: .75rem;
      padding: 1.2rem .8rem .8rem;
    }
    .answer-main {
      padding: .5rem;
      box-shadow: 0px 0px 10px 4px #dcdfe6;
    }
    .answer-options .text {
      color: #1c1c1c;
      font-size: .85rem;
    }
    .answer-result {
      display: none;
      padding: .5rem;
    }
   
    .answer-result .scroe {
      text-align: center;
      font-size: 3rem;
      color: red;
    }
    .answer-result .scroe-text {
      font-size: 1.5rem;
      text-align: center;
    }
    .answer-result .scroe-btm {
      font-size: 1.2rem;
      text-align: center;
      font-weight: 700;
    }
    .result-text .des {
      text-indent: 1em;
      margin-bottom: .2rem;
      font-size: .8rem;
    }
    .result-text .result {
      color: red;
    }
  </style>
  <script>
    // 用js 监听屏幕的大小来改变根元素的font-size
    (function(win,doc){
      function change(){
            const html = document.documentElement;
            const width = html.getBoundingClientRect().width;
            html.style.fontSize = width / 18 + 'px';
      }
      change();
      win.addEventListener('resize', change, false);
    })(window,document.documentElement);
  </script>
</head>
<body>
  <div class="answer-wrap">
    <div class="answer-des">现在患有抑郁症的患者是越来越多，如果不知道怎么缓解抑郁症的话，会对他们的生活造成诸多困扰。接下来就一起测试一下抑郁症的试题吧</div>
    <div id="div_demo">
    </div>
    <div class="answer-btn-box">
      <span class="btn">提交</span>
    </div>
    <div class="link-go className" id="link">
      <a href="https://mp.weixin.qq.com/s/K0jdWidQq1vUFdeiIl9zyQ">
        <span>据说100万海南人做了</span></br>
        <span>这个测试</span></br>
        <span>点击马上开测</span>
      </a>
    </div>
    <!-- <div class="modal">
      <div class="arrow">
        <img class="arr" src="./arrow.png" alt=""/>
        <img class="text" src="./shareDes.png" alt=""/>
      </div>
    </div> -->
  </div>
  <script id="tpl" type="text/x-jquery-tmpl">
  <div>
    <div class="answer-group">
      <div class="answer-main">
        {{each test}}
        <div class="group" data-id = {{= id}}>
          <div class="answer-title">{{= title}}</div>
          <div class="answer-options">
            {{each option}}
            <div class="options-item" data-id = {{= id}} data-score = {{= score}} data-last = {{= last}}>
              <span class="text">{{= name}}</span>
            </div>
            {{/each}}
          </div>
        </div>
        {{/each}}
      </div>
    </div>
    <div class="answer-result">
      <div class="scroe-text">抑郁症测试结果</div>
      <div id="scroe" class="scroe"></div>
      <div id="state" class="scroe-btm"></div>
      <div class="qr">
        <img class="arr" src="./qr.png" alt=""/>
      </div>
    </div>
  </div>
  </script>
</body>
<script src="./jquery-1.4.2.min.js"></script>
<script src="./jquery.tmpl.min.js"></script>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js" type="text/javascript"></script>
<script src="./common.js"></script>
<script src="./questions5.js"></script>
</html>